﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Windows;
using ChuckNorris.Models;
using ImpromptuInterface.MVVM;
using ImpromptuInterface.MVVM.Ninject;
using Ninject;

namespace ChuckNorris.NInject
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            using (var kernel = new StandardKernel())
            {
                kernel.Bind<IWebService>().To<ChuckNorrisWebService>();
                var runtime =Runtime.Initialize().SetupContainer(new Container(kernel, typeof(IKernel)));
                runtime.Start.Main();
            }
    
        }
    }
}
